var express = require('express');
var router = express.Router();
const logFormat = require("../utils/logUtil/logFormat")
/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});
router.get('/getClientIp', function(req, res, next) {
    const data = logFormat.formatReqLog(req);
    res.send({status:200,msg:'请求成功',data})
});
module.exports = router;
